﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Cadastro.aspx.cs" Inherits="UI.Cadastro" MasterPageFile="~/wiki.Master"%>

<asp:Content ID="cadastro" ContentPlaceHolderID="ContentPlaceHolder" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <h2>Informações Gerais</h2>
    <asp:UpdatePanel ID="upCadastro" runat="server">
        <ContentTemplate>
        
                <asp:Panel ID="pnSucesso" runat="server" BackColor="#CCFFCC" 
        style="text-align: center" Visible="False">
        <img alt="" src="Images/Ok-16x16.png" style="width: 16px; height: 16px" />
        <asp:Label ID="lbMsgSucesso" runat="server" 
            style="font-weight: 700; color: #006600; font-size: small"></asp:Label>
    </asp:Panel>
    <asp:Panel ID="pnFalha" runat="server" BackColor="#FFCCCC" 
                    style="text-align: center" Visible="False">
                    &nbsp;<img alt="" src="Images/Error-16x16.png" style="width: 16px; height: 16px" />
                    <asp:Label ID="lbMsgFalha" runat="server" 
                        style="font-weight: 700; color: #FF0000; font-size: small;"></asp:Label>
                </asp:Panel>
    <asp:ValidationSummary ID="vcCadastro" runat="server" BackColor="#FFFFCC" 
        Font-Bold="True" style="font-size: small" />
            <table style="width: 100%">
                <tr>
                    <td style="width: 147px">
                        Nome completo:</td>
                    <td style="width: 218px">
                        <asp:TextBox ID="txtNome" runat="server" Width="160px"></asp:TextBox>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="rfvNome" runat="server" 
                            ControlToValidate="txtNome" Display="None" ErrorMessage="Infome o campo Nome!"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td style="width: 147px">
                        Email:</td>
                    <td style="width: 218px">
                        <asp:TextBox ID="txtEmail" runat="server" Width="160px"></asp:TextBox>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="rfvEmail" runat="server" 
                            ControlToValidate="txtEmail" Display="None" 
                            ErrorMessage="Infome o campo Email!"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="revEmail" runat="server" 
                            ControlToValidate="txtEmail" Display="None" ErrorMessage="Email inválido!" 
                            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td style="width: 147px">
                        Login:</td>
                    <td style="width: 218px">
                        <asp:TextBox ID="txtLogin" runat="server" Width="160px"></asp:TextBox>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="rfvLogin" runat="server" 
                            ControlToValidate="txtLogin" Display="None" 
                            ErrorMessage="Infome o campo Login!"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td style="width: 147px">
                        Senha:</td>
                    <td style="width: 218px">
                        <asp:TextBox ID="txtSenha" runat="server" TextMode="Password" Width="160px"></asp:TextBox>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="rfvSenha" runat="server" 
                            ControlToValidate="txtSenha" Display="None" 
                            ErrorMessage="Infome o campo Senha!"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td style="width: 147px">
                        Confirmar senha:</td>
                    <td style="width: 218px">
                        <asp:TextBox ID="txtConfirmaSenha" runat="server" TextMode="Password" 
                            Width="160px"></asp:TextBox>
                    </td>
                    <td>
                        <asp:CompareValidator ID="cvConfirmaSenha" runat="server" Display="None" 
                            ErrorMessage="Senha não confere!" ControlToCompare="txtSenha" 
                            ControlToValidate="txtConfirmaSenha"></asp:CompareValidator>
                    </td>
                </tr>
                <tr>
                    <td style="width: 147px">
                        Data de&nbsp; nascimento:</td>
                    <td style="width: 218px">
                        
                        <maskededitextender id="txtNascimento_MaskedEditExtender" runat="server" 
                            cultureampmplaceholder="" culturecurrencysymbolplaceholder="" 
                            culturedateformat="" culturedateplaceholder="" culturedecimalplaceholder="" 
                            culturethousandsplaceholder="" culturetimeplaceholder="" enabled="True" 
                            targetcontrolid="txtNascimento">
                            <asp:TextBox ID="txtDia" runat="server" MaxLength="2" Width="30px"></asp:TextBox>
                            /<asp:TextBox ID="txtMes" runat="server" MaxLength="2" Width="30px"></asp:TextBox>
                            /<asp:TextBox ID="txtAno" runat="server" MaxLength="4" Width="50px"></asp:TextBox>
                        </maskededitextender>
                        
                    </td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td style="width: 147px">
                        &nbsp;</td>
                    <td align="left" style="width: 218px">
                        <asp:Button ID="btOK" runat="server" CssClass="botao" onclick="btOK_Click" 
                            Text="Cadastrar" />
                        &nbsp;<asp:Button ID="btLogIn" runat="server" CausesValidation="False" 
                            CssClass="botao" onclick="btLogIn_Click" Text="Entrar!" Visible="False" 
                            Width="60px" />
                    </td>
                    <td>
                        &nbsp;</td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
    <br />
    
</asp:Content>